package com.ruoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;

/**
 * web容器中进行部署
 * 
 * @author ruoyi
 */
//@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
//@EnableCaching
//@ServletComponentScan
public class RuoYiServletInitializer extends SpringBootServletInitializer
{
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
    {
        return application.sources(RuoYiServletInitializer.class);
    }
    
    public static void main(String[] args){
        // System.setProperty("spring.devtools.restart.enabled", "false");
        //SpringApplication.run(RuoYiServletInitializer.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  若依启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }
    
}
